const {genSchedule}=require('../lib/genSchedule');
const {timeout,interval,cancelNs}=genSchedule();

timeout('ns.aa',()=>{
    console.log(1000);
},1000);
timeout('ns.aa',()=>{
    console.log(2000);
},2000);
interval('ns.bb',()=>{
    console.log('bb');
},1000);

timeout.addOne('ns.aa',()=>{
    console.log(1000);
},1000);
cancelNs.cancel('ns');